projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
652cc1a
)
(encode_coding_utf_16): Fix checking of an Unicode character.
author
Kenichi Handa
<handa@m17n.org>
Thu, 27 Aug 2009 07:30:51 +0000
(07:30 +0000)
committer
Kenichi Handa
<handa@m17n.org>
Thu, 27 Aug 2009 07:30:51 +0000
(07:30 +0000)
src/ChangeLog
patch
|
blob
|
history
src/coding.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index b14fac9b6b1594c8dcfd694fcd1b02a83cdec49d..7eb5f5b3efba67832a5ebe2d91b2ca94d0a585d4 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-1,5
+1,8
@@
2009-08-27 Kenichi Handa <handa@m17n.org>
+ * coding.c (encode_coding_utf_16): Fix checking of a Unicode
+ character.
+
* cmds.c (Fself_insert_command): Avoid unnecessay
unibyte->multibyte conversion.
diff --git
a/src/coding.c
b/src/coding.c
index a8f84378e665b80bee23f601ccb495f22dfd377a..388b4b833c49e92f028e8aba61f6630b1529d6b8 100644
(file)
--- a/
src/coding.c
+++ b/
src/coding.c
@@
-1858,7
+1858,7
@@
encode_coding_utf_16 (coding)
{
ASSURE_DESTINATION (safe_room);
c = *charbuf++;
- if (c >
=
MAX_UNICODE_CHAR)
+ if (c > MAX_UNICODE_CHAR)
c = coding->default_char;
if (c < 0x10000)